package ae.pcfc.cldos.online.common.delegate.provider;

import ae.pcfc.cldos.online.common.ConstantsCommon.Steps;
import ae.pcfc.cldos.online.common.delegate.BaseDelegate;
import ae.pcfc.cldos.online.common.delegate.EmploymentVisaCancelationDelegate;
import ae.pcfc.cldos.online.common.exception.BadAppException;
import ae.pcfc.cldos.online.common.facade.EmploymentVisaCancelationFacade;
import ae.pcfc.cldos.online.common.vo.AppSaveResponseVO;
import ae.pcfc.cldos.online.common.vo.UserVO;
import ae.pcfc.cldos.online.common.vo.ev.ren.can.EmploymentVisaCancelationVO;
import ae.pcfc.cldos.online.common.vo.ev.ren.can.SubmitExitPaperVO;

/**
 * 
 * @author arosa
 *
 */
public class EmploymentVisaCancelationDelegateImpl extends BaseDelegate implements EmploymentVisaCancelationDelegate {

	public EmploymentVisaCancelationVO getEmploymentVisaCancelationAppInfo(String appId, UserVO userVO, Steps step) throws BadAppException{
		return getServiceLocator().getFacadeService(EmploymentVisaCancelationFacade.class).getEmploymentVisaCancelationAppInfo(appId, userVO, step);
	}
	
	public AppSaveResponseVO submit(EmploymentVisaCancelationVO employeVisaCancelationVO) throws Exception{
		return getServiceLocator().getFacadeService(EmploymentVisaCancelationFacade.class).submit(employeVisaCancelationVO);
	}
	
	public AppSaveResponseVO reSubmit(EmploymentVisaCancelationVO employeVisaCancelationVO, String appId) throws Exception{
		return getServiceLocator().getFacadeService(EmploymentVisaCancelationFacade.class).reSubmit(employeVisaCancelationVO, appId);
	}
	
	public void submitExitDocument(SubmitExitPaperVO submitExitPaperVO) throws Exception{
		getServiceLocator().getFacadeService(EmploymentVisaCancelationFacade.class).submitExitDocument(submitExitPaperVO);
	}
}
